//
//  CHKFile.h
//  MapEdit
//
//  Created by Steven Canfield on 10/06/07.
//  Copyright 2007 __MyCompanyName__. All rights reserved.
//

// TO DO: Rip out anything having to do with TileMap, UnitList, etc
// Replace with "- (NSData *)dataForChunckNamed:(NSString *)name"
// Add method for saving, "- (void)setSaveCallbackForChunckNamed:(NSString *)name :(id)target selector:(@selector)sel"
// Selector must return an NSData instance.

#import <Cocoa/Cocoa.h>
#import "TileMap.h"
#import "NSColorAdditions.h"
#import "Terrain.h"
#import "FileInfo.h"
#import "Player.h"
#import "FileInfoManager.h"
#import "UnitList.h"
#import "DoodadList.h"
#import "DoodadUnitList.h"


@interface CHKFile : NSObject {
	NSMutableDictionary	*	_chunkStorage;
	NSMutableDictionary *	_chunkSaveCallbacks;
	NSMutableArray		*	_chunkNames;
	NSData				*	_savedData;
}
- (id)initWithData:(NSData *)data;
- (NSData *)serialize;
- (NSData *)dataForChunkNamed:(NSString *)chunkName;
- (void)setSaveCallbackForChunkNamed:(NSString *)name target:(id)target selector:(SEL)sel;
@end